﻿<%@ Page Title="About Us" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Movies.aspx.cs" Inherits="LikeUsWebSite.Movies" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script  type="text/javascript">
    function searchMovie(value) {
        var behavior = $find('dp2');
        if (behavior) {
            behavior.populate(value);
        }
    }  
    </script>

    <h2>
       Movies
    </h2>
    <p>
        <input type="text" ID="m_SerachText" Width="340px"/>
        <input type="button" ID="m_searchButton" onclick="getElementById('loading').innerHTML='Loading...';searchMovie(m_SerachText.value);" 
            value="Search" />
    </p>
   <!-- <p>
        &nbsp;</p>
    <asp:BulletedList ID="BulletedList1" runat="server" BulletStyle="Numbered">
    </asp:BulletedList>//-->
    <div id="loading"></div>
    <asp:Panel ID="Panel2" runat="server" CssClass="dynamicPopulate_Normal" ClientIDMode="Inherit"/>
    <ajaxToolkit:DynamicPopulateExtender ID="dp" BehaviorID="dp2" runat="server"  
    TargetControlID="Panel2"  
    ClearContentsDuringUpdate="true"  
    ServiceMethod="searchMovieService"  
    ServicePath="~/Ajax/services.asmx"
    UpdatingCssClass="dynamicPopulate_Updating" /> 
    
</asp:Content>
